//
//  SeviceNetWorkModel.m
//  KEREN
//
//  Created by MW on 2023/4/26.
//

#import "SeviceNetWorkModel.h"

@implementation SeviceNetWorkModel

+ (instancetype)initWithDictionary:(NSDictionary *)jsonDic{
    SeviceNetWorkModel *model = [[super alloc] init];
    [model setValuesForKeysWithDictionary:jsonDic];
//    if(model.photo){
//        if(![model.photo hasPrefix:@"http"]){
//            model.photo = [NSString stringWithFormat:@"%@%@",BaseimageUrl,model.photo];
//        }
//    }
//    if(model.image){
//        if(![model.image hasPrefix:@"http"]){
//            model.image = [NSString stringWithFormat:@"%@%@",BaseimageUrl,model.image];
//        }
//    }
    return model;
}

-(id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if([key isEqualToString:@"id"]){
        self.Id  = [value intValue];
    }
    if([key isEqualToString:@"ID"]){
        self.Id  = [value intValue];
    }

}

@end
